﻿
namespace Wulong.Phone.Qiushi.Views
{
    public partial class MainView
    {
        // Constructor
        public MainView()
        {
            InitializeComponent();            
            LoadAppBar();
        }

        private void LoadAppBar()
        {
            // Set the page's ApplicationBar to a new instance of ApplicationBar
            //ApplicationBar = new ApplicationBar();

            //var newPostButton = new AppBarButton
            //{
            //    IconUri = new Uri("/images/new_post.png", UriKind.Relative),
            //    Text = AppResources.App_New_Post_View_Title,
            //    Message = "NavigateToNewPostView"
            //};
            //ApplicationBar.Buttons.Add(newPostButton);

            //var refreshButton = new AppBarButton
            //{
            //    IconUri = new Uri("/images/refresh.png", UriKind.Relative),
            //    Text = AppResources.V_Main_AppBar_Refresh,
            //    Message = "RefreshCommand"
            //};
            //ApplicationBar.Buttons.Add(refreshButton);

            //var retreieveNewButton = new AppBarButton
            //{
            //    IconUri = new Uri("/images/retrieve_newitems.png", UriKind.Relative),
            //    Text = AppResources.App_AppBarButton_Retrieve_New_Items,
            //    Message = "RetrieveNewItemsCommand"
            //};
            //ApplicationBar.Buttons.Add(retreieveNewButton);

            //var settingButton = new AppBarButton
            //{
            //    IconUri = new Uri("/images/settings.png", UriKind.Relative),
            //    Text = AppResources.V_Main_AppBar_Settings,
            //    Message = "NavigateToSettingView"
            //};
            //ApplicationBar.Buttons.Add(settingButton);

            //var quickShotButton = new AppBarButton
            //{
            //    IconUri = new Uri("/images/camera.png", UriKind.Relative),
            //    Text = AppResources.App_New_Post_Lauch_Camera,
            //    Message = "QuickShotCommand"
            //};
            //ApplicationBar.Buttons.Add(quickShotButton);

            //var aboutUsMenuItem = new AppBarMenuItem
            //{
            //    Text = AppResources.V_Main_AppBar_About,
            //    Message = "NavigateToAboutUsPage"
            //};
            //ApplicationBar.MenuItems.Add(aboutUsMenuItem);
            
        }
    }
}